<?php /*a:4:{s:32:"./themes/default/user\login.html";i:1521154324;s:33:"./themes/default/common\base.html";i:1521154324;s:35:"./themes/default/common\header.html";i:1521154324;s:35:"./themes/default/common\footer.html";i:1521154324;}*/ ?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title><?php echo htmlentities($title); ?> - <?php echo config('base.site_title'); ?> - Powered by StartBBS!</title>
  <meta name="keywords" content="fly,layui,前端社区">
  <meta name="description" content="Fly社区是模块化前端UI框架Layui的官网社区，致力于为web开发提供强劲动力">
  <link rel="stylesheet" href="/public/static/common/js/layui/css/layui.css">
  <link rel="stylesheet" href="/public/static/default/css/global.css">
  <link rel="stylesheet" href="/public/static/default/css/index.css">
	
</head>
<body>
<div class="fly-header layui-bg-black">
  <div class="layui-container">
    <a class="fly-logo" href="<?php echo url('index/index'); ?>">
      <img src="/public/static/default/images/logo.png" alt="layui">
    </a>
    <ul class="layui-nav fly-nav layui-hide-xs">
        <?php if(is_array($nav) || $nav instanceof \think\Collection || $nav instanceof \think\Paginator): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['pid'] == '0'): ?>
      <li class="layui-nav-item">
        <a href="<?php echo htmlentities($vo['link']); ?>" target="<?php echo htmlentities($vo['target']); ?>" title="<?php echo htmlentities($vo['alias']); ?>"><?php echo htmlentities($vo['name']); ?></a>
      </li>
        <?php endif; endforeach; endif; else: echo "" ;endif; ?>
    </ul>
    
    <ul class="layui-nav fly-nav-user">
	    <?php if(session('user_id') != null): ?>
      <!-- 登入后的状态 -->
      <li class="layui-nav-item">
        <a class="fly-nav-avatar" href="javascript:;">
          <cite class="layui-hide-xs"><?php echo session('user_name'); ?></cite>
<!--          <i class="iconfont icon-renzheng layui-hide-xs" title="认证信息：layui 作者"></i>-->
          <i class="layui-badge fly-badge-vip layui-hide-xs"><?php echo session('group_name'); ?></i>
          <img src="<?php echo session('avatar'); ?>">
        </a>
        <dl class="layui-nav-child">
	        <dd><a href="<?php echo url('user/index'); ?>"><i class="layui-icon">&#xe612;</i>用户中心</a></dd>
          <dd><a href="<?php echo url('user/set'); ?>"><i class="layui-icon">&#xe620;</i>基本设置</a></dd>
          <dd><a href="user/message.html"><i class="iconfont icon-tongzhi"></i>我的消息</a></dd>
          <dd><a href="<?php echo url('user/home',['id'=>session('user_id')]); ?>"><i class="layui-icon">&#xe68e;</i>我的主页</a></dd>
          <hr style="margin: 5px 0;">
	      <?php if(session('group_id') == '1'): ?>
          <dd><a href="/admin.php" style="text-align: center;"><i class="layui-icon">&#xe632;</i>后台管理</a></dd>
          <?php endif; ?>
          <dd><a href="javascript:;" data-url="<?php echo url('user/logout'); ?>" style="text-align: center;" class="action">退出</a></dd>
        </dl>
      </li>
      <?php else: ?>
      <!-- 未登入的状态 -->
      <li class="layui-nav-item">
        <a class="iconfont icon-touxiang layui-hide-xs" href="<?php echo url('user/login'); ?>"></a>
      </li>
      <li class="layui-nav-item">
        <a href="<?php echo url('user/login'); ?>">登入</a>
      </li>
      <li class="layui-nav-item">
        <a href="<?php echo url('user/register'); ?>">注册</a>
      </li>
      <!--<li class="layui-nav-item layui-hide-xs">
        <a href="/app/qq/" onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})" title="QQ登入" class="iconfont icon-qq"></a>
      </li>
      <li class="layui-nav-item layui-hide-xs">
        <a href="/app/weibo/" onclick="layer.msg('正在通过微博登入', {icon:16, shade: 0.1, time:0})" title="微博登入" class="iconfont icon-weibo"></a>
      </li>-->
     
      <?php endif; ?>
    </ul>
  </div>
</div>

<div class="layui-container fly-marginTop">
  <div class="fly-panel fly-panel-user" pad20>
    <div class="layui-tab layui-tab-brief" lay-filter="user">
      <ul class="layui-tab-title">
        <li class="layui-this">登入</li>
        <li><a href="register.html">注册</a></li>
      </ul>
      <div class="layui-form layui-tab-content" style="padding: 20px 0;">
        <div class="layui-tab-item layui-show">
          <div class="layui-form layui-form-pane">
            <form class="layui-form login-form" action="<?php echo url('user/login'); ?>" method="post">
              <div class="layui-form-item">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-inline">
                  <input type="text" name="username" required lay-verify="required" class="layui-input">
                </div>
              </div>
              <div class="layui-form-item">
                <label class="layui-form-label">密码</label>
                <div class="layui-input-inline">
                  <input type="password" name="password" required lay-verify="required" class="layui-input">
                </div>
              </div>
              <div class="layui-form-item">
                <label class="layui-form-label">验证码</label>
                <div class="layui-input-inline">
                  <input type="text" name="verify" required lay-verify="required" placeholder="4位验证码" class="layui-input">
                </div>
                <img src="<?php echo captcha_src(); ?>" alt="点击更换" title="点击更换" onclick="this.src='<?php echo captcha_src(); ?>?time='+Math.random()" class="captcha">
              </div>
              <div class="layui-form-item">
                <button class="layui-btn" lay-filter="*" lay-submit>登 录</button>
                <!--<span style="padding-left:20px;">
                  <a href="<?php echo url('User/forget'); ?>">忘记密码？</a>
                </span>-->
              </div>
              <!--<div class="layui-form-item fly-form-app">
                <span>或者使用社交账号登入</span>
                <a href="" onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})" class="iconfont icon-qq" title="QQ登入"></a>
                <a href="" onclick="layer.msg('正在通过微博登入', {icon:16, shade: 0.1, time:0})" class="iconfont icon-weibo" title="微博登入"></a>
              </div>-->
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<div class="fly-footer">
  <p>
    <?php if(is_array($nav) || $nav instanceof \think\Collection || $nav instanceof \think\Paginator): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;if($vo['pid'] == '1'): ?>
    <a href="<?php echo htmlentities($vo['link']); ?>" title="<?php echo htmlentities($vo['alias']); ?>" target="<?php echo htmlentities($vo['target']); ?>"><i class="fa fa-<?php echo htmlentities($vo['icon']); ?>" ></i> <?php echo htmlentities($vo['name']); ?></a>
     <?php if(count($nav) != $key+1): ?>
	 <label></label>
	 <?php endif; endif; endforeach; endif; else: echo "" ;endif; ?>
  </p>
    <p>Copyright © 2018 <a href="http://www.startbbs.com">startbbs.com</a> <?php echo htmlentities(app('config')->get('site_title')); ?> <?php echo config('base.site_icp'); ?> <?php echo htmlspecialchars_decode(config('base.site_statis')); ?></p>
    <p><?php echo htmlentities(html_entity_decode(app('config')->get('site_footer'))); ?></p>
</div>
<!--JS引用-->
<script src="/public/static/common/js/jquery.min.js"></script>
<script src="/public/static/common/js/layui/layui.all.js"></script>
<script src="/public/static/common/js/global.js"></script>

<!--页面JS脚本-->

</body>
</html>